package com.by.hellosecurityoauth2.domain.repository;

import com.by.hellosecurityoauth2.domain.TUserRole;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @author 白羽
 * @Date 2022-12-13 09:43:46
 */
public interface TUserRoleRepository extends JpaRepository<TUserRole, Long>, JpaSpecificationExecutor<TUserRole> {

    void deleteByUserId(Long userId);

    List<TUserRole> findByUserId(Long userId);

}